cmake_minimum_required(VERSION 3.31)
project(mail_helper)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options("/Zc:__cplusplus")
add_compile_options("/permissive-")

set(Poco_DIR "C:/install/Poco/cmake")
find_package(Poco COMPONENTS Foundation Net REQUIRED)
#get_cmake_property(_variableNames VARIABLES)
#foreach (_variableName ${_variableNames})
#    # 筛选以 Qt 开头的变量
#    if (_variableName MATCHES "^Poco")
#        message(STATUS ">>> ${_variableName}=${${_variableName}}")
#    endif ()
#endforeach ()
add_executable(${PROJECT_NAME} main.cpp)

#target_include_directories(${PROJECT_NAME} PRIVATE "C:/install/Poco/include/Poco")
target_link_libraries(${PROJECT_NAME} PRIVATE Poco::Foundation Poco::Net)